#{extends 'mana-main.html' /}
#{set activitydActive :"active" /}
#{set title :"查看活动" /}

<br>
<br>
<br>
<br>
<div class="article row">
    <div class="row">
        <a href="@{Activities.add}" class="btn btn-small btn-success pull-right">添加活动</a>
    </div>
    <br>
#{if productrecommendedList}
    <table class="table table-hover table-bordered">
        <tr>
            <th width="33%">标题</th>
            <th width="33%">时间</th>
            <th width="34%">操作</th>
        </tr>
        #{list productrecommendedList, as:'item'}
            <tr>
                <td>${item.name}</td>
                <td>${new Date(item.createTime).format('yyyy/MM/dd')}</td>
                <td><a class="btn btn-info" href ="@{Activities.show(item.id)}">查看</a>
                    <a class="btn btn-primary" href ="@{Activities.modify(item.id)}">修改</a>
                    <a class="btn btn-danger" href ="@{Activities.delete(item.id,type)}">删除</a></td>
            </tr>
        #{/list}
    </table>
#{/if}
</div>